package homework;


public class Student {
	private int id;
	private String name;
	private String sex;
	public Student(int id, String name, String sex, int age) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.age = age;
	}
	public String getSex() {
		return sex;
	}
	@Override
	public String toString() {
		return name + "-" + sex + "-" + age;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	private int age;
	
	public void setId(int id){
		this.id=id;
	}
	public void setName(String name){
		this.name=name;
	}
	public void setAge(int age) {
			this.age=age;
	}
	public int getId(){
		return id;
	}
	public String getName(){
		return name;
	}
	public int getAge(){
		return age;
	}
	
	public Student(int id,String name,int age){
		this.id=id;
		this.name=name;
		this.age=age;
	}
	public Student(){
	}
}
